//
//  CustomImageView.m
//  AoJi
//
//  Created by MinwenYi on 15-1-27.
//  Copyright (c) 2015年 xuanheng. All rights reserved.
//

#import "CustomImageView.h"

@implementation CustomImageView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(id)init
{

    self =[super init];
    if (self) {
        
        UIGestureRecognizer *tap=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapBtn1:)];
        [self addGestureRecognizer:tap];
        self.userInteractionEnabled=YES;

        
    }
    return self;

}

-(void)tapBtn1:(UIGestureRecognizer*)tap
{
    if ([self.delegate respondsToSelector:@selector(tapTheCustomImage:)]) {
        [self.delegate tapTheCustomImage:self];
    }


}
@end
